﻿"use strict";


//Assign myName a string with the value of 'Nick'
var myName = "Nick";
var yourName = "Jim";


//Assign someMath a number with the value of some math
var someMath = (10 + 2) / 2 + 4 * 2;

//Assign softballTeamJerseyNumbers to an array
var softballTeamJerseyNumbers = [1, 5, 19, 8];
softballTeamJerseyNumbers.push(10);

//Booleans - bool
var isDeleted = false;
var hasFrostedFlakes = false;

//Variable set to an anonymous function
var displayMessage = function (message) {
    console.log(message);
}

//Named function
function alsoDisplayMessage(message) {
    console.log(message);
}

//Invoke - Execute - Run - Call function
displayMessage('Here is the message!');
alsoDisplayMessage('Here is the other message!');

//Object Literal notation
var nick = {
    firstName: 'Nick',
    lastName: 'Brittain',
    age: 34,
    likesPeanutButter: true,
    favoriteColor: 'blue',
    showFavoriteColor: function () {
        alert(this.favoriteColor);
    }
};

nick.firstName = 'Bob';
nick.FirstName = 'Nick';

//nick.lastName = 'Brittain';
//nick.age = 34;
//nick.likesPeanutButter = true;


//Camel Case
var thisHasALotOfWords = "asdfasdf";

var SomeMath = 0;

//Pascal Case
//alert(SomeMath);